//
//  Permissions.m
//  StaffHelper
//
//  Created by 馍馍帝😈 on 16/8/9.
//  Copyright © 2016年 馍馍帝👿. All rights reserved.
//

#import "Permissions.h"

@implementation Permission

+(instancetype)cardPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"cardPermission";
    
    return permission;
    
}

+(instancetype)personalCardPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"personalCardPermission";
    
    return permission;
    
}

+(instancetype)giftCardPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"giftCardPermission";
    
    return permission;
    
}

+(instancetype)userPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"userPermission";
    
    return permission;
    
}

+(instancetype)personalUserPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"personalUserPermission";
    
    return permission;
    
}

+(instancetype)studioPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"studioPermission";
    
    return permission;
    
}

+(instancetype)staffPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"staffPermission";
    
    return permission;
    
}

+(instancetype)coachPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"coachPermission";
    
    return permission;
    
}

+(instancetype)cardKindPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"cardKindPermission";
    
    return permission;
    
}

+(instancetype)groupArrangePermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"groupArrangePermission";
    
    return permission;
    
}

+(instancetype)groupPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"groupPermission";
    
    return permission;
    
}

+(instancetype)groupOrderPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"groupOrderPermission";
    
    return permission;
    
}

+(instancetype)privateOrderPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"privateOrderPermission";
    
    return permission;
    
}

+(instancetype)privatePermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"privatePermission";
    
    return permission;
    
}

+(instancetype)privateArrangePermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"privateArrangePermission";
    
    return permission;
    
}

+(instancetype)courseOrderPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"courseOrderPermission";
    
    return permission;
    
}

+(instancetype)personalCourseOrderPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"personalCourseOrderPermission";
    
    return permission;
    
}

+(instancetype)checkinPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"checkinPermission";
    
    return permission;
    
}

+(instancetype)checkinListPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"checkinListPermission";
    
    return permission;
    
}

+(instancetype)personalCheckinListPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"personalCheckinListPermission";
    
    return permission;
    
}

+(instancetype)checkinSettingPermssion{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"checkinSettingPermssion";
    
    return permission;
    
}

+(instancetype)activitySettingPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"activitySettingPermission";
    
    return permission;
    
}

+(instancetype)productPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"productPermission";
    
    return permission;
    
}

+(instancetype)productInventoryPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"productInventoryPermission";
    
    return permission;
    
}

+(instancetype)productReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"productReportPermission";
    
    return permission;
    
}

+(instancetype)lockerPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"lockerPermission";
    
    return permission;
    
}

+(instancetype)courseReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"courseReportPermission";
    
    return permission;
    
}

+(instancetype)cardReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"cardReportPermission";
    
    return permission;
    
}

+(instancetype)sellReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"sellReportPermission";
    
    return permission;
    
}

+(instancetype)orderReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"orderReportPermission";
    
    return permission;
    
}

+(instancetype)personalOrderReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"personalOrderReportPermission";
    
    return permission;
    
}

+(instancetype)personalSellReportPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"personalSellReportPermission";
    
    return permission;
    
}

+(instancetype)commentsReport{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"commentsReport";
    
    return permission;
    
}

+(instancetype)permissionPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"permissionPermission";
    
    return permission;
    
}

+(instancetype)messagePermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"messagePermission";
    
    return permission;
    
}
+(instancetype)messageDetailsPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"messageDetailsPermission";
    
    return permission;
    
}

+(instancetype)messageChannelsPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"messageChannelsPermission";
    
    return permission;
    
}
+(instancetype)measureSettingPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"measureSettingPermission";
    
    return permission;
    
}

+(instancetype)coursePlansSettingPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"coursePlansSettingPermission";
    
    return permission;
    
}

+(instancetype)wechatSettingPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"wechatSettingPermission";
    
    return permission;
    
}

+(instancetype)noticePermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"noticePermission";
    
    return permission;
    
}

+(instancetype)billPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"billPermission";
    
    return permission;
    
}

+(instancetype)paySettingPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"paySettingPermission";
    
    return permission;
    
}

+(instancetype)advertisementPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"advertisementPermission";
    
    return permission;
    
}

+(instancetype)koubeiPermission{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"koubeiPermission";
    
    return permission;
    
}

+(instancetype)checkinReportPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"checkinReportPermission";
    
    return permission;
    
}

+(instancetype)integralPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"integralPermission";
    
    return permission;
    
}

+(instancetype)integralRankPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"integralRankPermission";
    
    return permission;
    
}

+(instancetype)groupLimitPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"groupLimitPermission";
    
    return permission;
    
}

+(instancetype)groupMessagePermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"groupMessagePermission";
    
    return permission;
    
}

+(instancetype)privateLimitPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"privateLimitPermission";
    
    return permission;
    
}

+(instancetype)privateMessagePermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"privateMessagePermission";
    
    return permission;
    
}

+(instancetype)staffPositionPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"staffPositionPermission";
    
    return permission;
    
}

+(instancetype)coachPositionPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"coachPositionPermission";
    
    return permission;
    
}

+(instancetype)spacePermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"spacePermission";
    
    return permission;
    
}

+(instancetype)homepagePermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"homepagePermission";
    
    return permission;
    
}

+(instancetype)checkinLockerPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"checkinLockerPermission";
    
    return permission;
    
}

+(instancetype)checkinScreenPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"checkinScreenPermission";
    
    return permission;
    
}


+ (instancetype)cardbalancePermission
{
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"cardbalancePermission";
    
    return permission;
}


+(instancetype)userExportPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"userExportPermission";
    
    return permission;
    
}

+(instancetype)userImportPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"userImportPermission";
    
    return permission;
    
}

+(instancetype)cardExportPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"cardExportPermission";
    
    return permission;
    
}

+(instancetype)cardImportPermission
{
    
    Permission *permission = [[Permission alloc]init];
    
    permission.readKey = @"cardImportPermission";
    
    return permission;
    
}

@end


@implementation Permissions

- (instancetype)init
{
    self = [super init];
    
    if (self) {
        
        self.permissions = [NSMutableArray array];
        
        self.cardPermission = [Permission cardPermission];
        
        [self.permissions addObject:self.cardPermission];
        
        self.personalCardPermission = [Permission personalCardPermission];
        
        [self.permissions addObject:self.personalCardPermission];
        
        self.giftCardPermission = [Permission giftCardPermission];
        
        [self.permissions addObject:self.giftCardPermission];
        
        self.userPermission = [Permission userPermission];
        
        [self.permissions addObject:self.userPermission];
        
        self.personalUserPermission = [Permission personalUserPermission];
        
        [self.permissions addObject:self.personalUserPermission];
        
        self.studioPermission = [Permission studioPermission];
        
        [self.permissions addObject:self.studioPermission];
        
        self.staffPermission = [Permission staffPermission];
        
        [self.permissions addObject:self.staffPermission];
        
        self.coachPermission = [Permission coachPermission];
        
        [self.permissions addObject:self.coachPermission];
        
        self.cardKindPermission = [Permission cardKindPermission];
        
        [self.permissions addObject:self.cardKindPermission];
        
        self.groupArrangePermission = [Permission groupArrangePermission];
        
        [self.permissions addObject:self.groupArrangePermission];
        
        self.groupOrderPermission = [Permission groupOrderPermission];
        
        [self.permissions addObject:self.groupOrderPermission];
        
        self.groupPermission = [Permission groupPermission];
        
        [self.permissions addObject:self.groupPermission];
        
        self.privatePermission = [Permission privatePermission];
        
        [self.permissions addObject:self.privatePermission];
        
        self.privateOrderPermission = [Permission privateOrderPermission];
        
        [self.permissions addObject:self.privateOrderPermission];
        
        self.privateArrangePermission = [Permission privateArrangePermission];
        
        [self.permissions addObject:self.privateArrangePermission];
        
        self.courseOrderPermission = [Permission courseOrderPermission];
        
        [self.permissions addObject:self.courseOrderPermission];
        
        self.personalCourseOrderPermission = [Permission personalCourseOrderPermission];
        
        [self.permissions addObject:self.personalCourseOrderPermission];
        
        self.checkinPermission = [Permission checkinPermission];
        
        [self.permissions addObject:self.checkinPermission];
        
        self.checkinListPermission = [Permission checkinListPermission];
        
        [self.permissions addObject:self.checkinListPermission];
        
        self.personalCheckinListPermission = [Permission personalCheckinListPermission];
        
        [self.permissions addObject:self.personalCheckinListPermission];
        
        self.checkinSettingPermssion = [Permission checkinSettingPermssion];
        
        [self.permissions addObject:self.checkinSettingPermssion];
        
        self.activitySettingPermission = [Permission activitySettingPermission];
        
        [self.permissions addObject:self.activitySettingPermission];
        
        self.productPermission = [Permission productPermission];
        
        [self.permissions addObject:self.productPermission];
        
        self.productInventoryPermission = [Permission productInventoryPermission];
        
        [self.permissions addObject:self.productInventoryPermission];
        
        self.productReportPermission = [Permission productReportPermission];
        
        [self.permissions addObject:self.productReportPermission];
        
        self.lockerPermission = [Permission lockerPermission];
        
        [self.permissions addObject:self.lockerPermission];
        
        self.courseReportPermission = [Permission courseReportPermission];
        
        [self.permissions addObject:self.courseReportPermission];
        
        self.cardReportPermission = [Permission cardReportPermission];
        
        [self.permissions addObject:self.cardReportPermission];
        
        self.sellReportPermission = [Permission sellReportPermission];
        
        [self.permissions addObject:self.sellReportPermission];
        
        self.orderReportPermission = [Permission orderReportPermission];
        
        [self.permissions addObject:self.orderReportPermission];
        
        self.personalOrderReportPermission = [Permission personalOrderReportPermission];
        
        [self.permissions addObject:self.personalOrderReportPermission];
        
        self.personalSellReportPermission = [Permission personalSellReportPermission];
        
        [self.permissions addObject:self.personalSellReportPermission];
        
        self.commentsReport = [Permission commentsReport];
        
        [self.permissions addObject:self.commentsReport];
        
        self.permissionPermission = [Permission permissionPermission];
        
        [self.permissions addObject:self.permissionPermission];
        
        self.messagePermission = [Permission messagePermission];
        
        [self.permissions addObject:self.messagePermission];
        
        //
        self.messageDetailsPermission = [Permission messageDetailsPermission];
        
        [self.permissions addObject:self.messageDetailsPermission];
        
        //
        self.messageChannelsPermission = [Permission messageChannelsPermission];
        
        [self.permissions addObject:self.messageChannelsPermission];
        
        self.measureSettingPermission = [Permission measureSettingPermission];
        
        [self.permissions addObject:self.measureSettingPermission];
        
        self.coursePlansSettingPermission = [Permission coursePlansSettingPermission];
        
        [self.permissions addObject:self.coursePlansSettingPermission];
        
        self.wechatSettingPermission = [Permission wechatSettingPermission];
        
        [self.permissions addObject:self.wechatSettingPermission];
        
        self.noticePermission = [Permission noticePermission];
        
        [self.permissions addObject:self.noticePermission];
        
        self.billPermission = [Permission billPermission];
        
        [self.permissions addObject:self.billPermission];
        
        self.paySettingPermission = [Permission paySettingPermission];
        
        [self.permissions addObject:self.paySettingPermission];
        
        self.advertisementPermission = [Permission advertisementPermission];
        
        [self.permissions addObject:self.advertisementPermission];
        
        self.koubeiPermission = [Permission koubeiPermission];
        
        [self.permissions addObject:self.koubeiPermission];
        
        self.checkinReportPermission = [Permission checkinReportPermission];
        
        [self.permissions addObject:self.checkinReportPermission];
        
        self.integralPermisson = [Permission integralPermission];
        
        [self.permissions addObject:self.integralPermisson];
        
        self.integralRankPermission = [Permission integralRankPermission];
        
        [self.permissions addObject:self.integralRankPermission];
        
        self.groupLimitPermission = [Permission groupLimitPermission];
        
        [self.permissions addObject:self.groupLimitPermission];
        
        self.groupMessagePermission = [Permission groupMessagePermission];
        
        [self.permissions addObject:self.groupMessagePermission];
        
        self.privateLimitPermission = [Permission privateLimitPermission];
        
        [self.permissions addObject:self.privateLimitPermission];
        
        self.privateMessagePermission = [Permission privateMessagePermission];
        
        [self.permissions addObject:self.privateMessagePermission];
        
        self.staffPositionPermission = [Permission staffPositionPermission];
        
        [self.permissions addObject:self.staffPositionPermission];
        
        self.coachPositionPermission = [Permission coachPositionPermission];
        
        [self.permissions addObject:self.coachPositionPermission];
        
        self.spacePermission = [Permission spacePermission];
        
        [self.permissions addObject:self.spacePermission];
        
        self.homepagePermission = [Permission homepagePermission];
        
        [self.permissions addObject:self.homepagePermission];
        
        self.checkinLockerPermission = [Permission checkinLockerPermission];
        
        [self.permissions addObject:self.checkinLockerPermission];
        
        self.checkinScreenPermission = [Permission checkinScreenPermission];
        
        [self.permissions addObject:self.checkinScreenPermission];
        
        
        self.cardbalancePermission = [Permission cardbalancePermission];
        
        [self.permissions addObject:self.cardbalancePermission];
        
        self.userExportPermission = [Permission userExportPermission];
        
        [self.permissions addObject:self.userExportPermission];
        
        self.userImportPermission = [Permission userImportPermission];
        
        [self.permissions addObject:self.userImportPermission];
        
        self.cardExportPermission = [Permission cardExportPermission];
        
        [self.permissions addObject:self.cardExportPermission];
        
        self.cardImportPermission = [Permission cardImportPermission];
        
        [self.permissions addObject:self.cardImportPermission];
        
    }
    
    return self;
    
}

@end
